package com.djmw.mouse.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.djmw.mouse.entity.Position;
import com.djmw.mouse.entity.PositionHistory;

public interface PositionHistoryDao extends PagingAndSortingRepository<PositionHistory, Long>,
        JpaSpecificationExecutor<PositionHistory> {

	Page<Position> findByCompanyId(Long id, Pageable pageRequest);

	Page<Position> findByPositionId(Long id, Pageable pageRequest);
}
